<?php $this->headTitle($this->headtitle,'SET'); ?>

<?php 
	if($this->object != null){
?>
<h1><?php echo $this->object->name; ?></h1>
<div class="row">
<div class="span8">
<div id="myCarousel" class="carousel slide">
    <!-- Carousel items -->
    <div class="carousel-inner">
<?php 	
$active = 'active ';
		foreach ($this->object->images as $image)
		{
			
?>
	<div class="<?php echo $active; ?>item"><a class="thumbnail" href="#" ><img alt="#" src="<?php echo '/tradeNetwork/application/'.$image->url;?>"></a></div>
<?php 
			if($active == 'active ')
				$active = '';
		}
?>
    
    
    </div>
    <!-- Carousel nav -->
    <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
    <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div>
</div>

<div class="span4">

<div class="thumbnail">
Informations:
<table class="table table-condensed table-hover">
<tr><td>Surface: </td><td><?php echo $this->object->surface; ?></td></tr>

<tr><td>Room: </td><td><?php echo $this->object->room; ?></td></tr>
<tr><td>Floor: </td><td><?php echo $this->object->floor; ?></td></tr>
<tr><td>Balcony: </td><td><?php echo $this->object->balcony; ?></td></tr>
<tr><td>Garage: </td><td><?php echo $this->object->garage; ?></td></tr>
</table></div> 

</div>
</div>
<div class="thumbnail">
<p>Description: <?php echo $this->object->description; ?></p>
</div>

<?php 
		
	}
?>
<?php if(!empty($this->alert)):?>
<div class="alert alert-error">
<button class="close" data-dismiss="alert" type="button">×</button>
<?php 	echo $this->alert; ?>
</div>
<?php endif;?>
